﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Drawing;
using System.Xml.Serialization;

namespace LevelEditor.App.Serialization
{
    public class SCollisionData
    {

        private List<Box> collisions;
        [XmlArray("boxes")]
        [XmlArrayItem("box")]
        public List<Box> Collisions
        {
            get { return collisions; }
            set { collisions = value; }
        }

        private string imageName;
        public string ImageName
        {
            get { return imageName; }
            set { imageName = value; }
        }

        private int imageIndex;
        [XmlElement("ImageIndex")]
        public int ImageIndex
        {
            get { return imageIndex; }
            set { imageIndex = value; }
        }


        public SCollisionData()
        {
            collisions = new List<Box>();
            
        }
    }
}
